package us.icitap.timsportal.web.custom;

import us.icitap.timsportal.web.TimsPortalApp;

import com.vaadin.ui.GridLayout;

public class PortalGridLayout extends GridLayout {
	private static final long serialVersionUID = 1L;

	public PortalGridLayout(){
		super();
	}
	
	public PortalGridLayout(int cols, int rows){
		super(cols,rows);
	}
	
	public PortalGridLayout(int cols, int rows, boolean spacing){
		super(cols,rows);
		setSpacing(spacing);
	}
	
	public PortalGridLayout(int cols, int rows, boolean spacing, String style){
		super(cols,rows);
		setSpacing(spacing);
		addStyleName(style);
	}
	
	public TimsPortalApp getApplication(){
		if(super.getApplication()==null)return null;
		else return (TimsPortalApp)super.getApplication();
	}
}
